from lib.server import core
from lib.config.index import server_config

port = server_config.get_port()
protocol = server_config.get_protocol()


def start_server():
    core.test_connection()
    return core.Main(protocol, port)
